<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <script type="text/javascript" src="./dist/zh_address.js"></script>
    <!-- <script type="text/javascript" src="./dist/zh_address_all.js"></script> -->
</head>
<body>
    <button onclick="getProvince()">获取省级数据</button><hr>
    <input type="text" id="province" placeholder="地区代码"><button onclick="getChild()">获取下级数据</button><hr>
    结果看控制台
    <script type="text/javascript">
        function getChild() {
            var province = document.getElementById("province").value;
            console.log(zh_address.getChildByPid(province));
        }
        function getProvince(){
            console.log(zh_address.getProvince());
        }
    </script>
</body>
</html>